package cn.edu.zafu.bigdata.Wym;

public class Wym_StaticDemo {
    static int count;
    int id;

    static {
        System.out.println("Static block executed");
        count = 0;
    }

    {
        System.out.println("Instance block executed");
        id = count;
        count++;
    }

    public void StaticDemo(){
        System.out.println("Constructor executed for ID:[实例ID]");
    }

    public static void displayCount(){
        System.out.println("Number of instance created:" +count);
    }
}
